package com.blog.dxxr.blogfront.Service.Impl;

import com.blog.dxxr.blogfront.Domain.ArticleTag;
import com.blog.dxxr.blogfront.Mapper.ArticleTagMapper;
import com.blog.dxxr.blogfront.Mapper.ArticleTagRelationMapper;
import com.blog.dxxr.blogfront.Service.ArticleTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleTagServiceImpl implements ArticleTagService {
    @Autowired
    private ArticleTagMapper articleTagMapper;
    @Autowired
    private ArticleTagRelationMapper articleTagRelationMapper;

    @Override
    public List<ArticleTag> queryAllTags() {
        return articleTagMapper.selectAllTags();
    }

    @Override
    public String[] queryArticleIdArrayByTagId(String tagid) {
        return articleTagRelationMapper.selectArticleIdArrayByTagId(tagid);
    }
}
